﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;

namespace MockPrjTeam2.Entity
{
    public class ProgrammesInfor
    {
        private string _programmeID;
        private string _ProgrammeName;
        private string _Description;
        private string _ContactID;
        private string _Contact;
        private string _Active;

        public string Contact { get; set; }

        public string Description { get; set; }
        
        public string ProgrammeName { get; set; }
        
        public string ProgrammeID { get; set; }

        public string ContactID { get; set; }

        public string Active { get; set; }
        #region[Idata]
        public ProgrammesInfor MappingEntity(IDataReader dr)
        {
            ProgrammesInfor obj = new ProgrammesInfor();
            obj.ProgrammeName = (dr["ProgrammeName"] is DBNull ? string.Empty : dr["ProgrammeName"].ToString());
            obj.Description = (dr["Description"] is DBNull ? string.Empty : dr["Description"].ToString());
            obj.ContactID = (dr["ContactID"] is DBNull ? string.Empty : dr["ContactID"].ToString());
            obj.Contact = (dr["Contact"] is DBNull ? string.Empty : dr["Contact"].ToString());
            obj.ProgrammeID = (dr["ProgrammeID"] is DBNull ? string.Empty : dr["ProgrammeID"].ToString());
            obj.Active = (dr["Active"] is DBNull ? string.Empty : dr["Active"].ToString());
            return obj;
        }
        #endregion
    }
}